package com.tougc.bean.beans;

import android.os.Parcel;
import android.os.Parcelable;

import java.util.ArrayList;

/**
 * Created by Administrator on 2018/6/4 0004.
 */

public class SuccesErrorBean {
    //什么也没返回
    private int id;
    private boolean success;
    /**
     * 3.38	电子合同签署-是否签署
     */
    private String url;

    private Ret ret;
    //开户行
    private ArrayList<BankList> bankList;

    public boolean isSuccess() {
        return success;
    }

    public void setSuccess(boolean success) {
        this.success = success;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    public Ret getRet() {
        return ret;
    }

    public void setRet(Ret ret) {
        this.ret = ret;
    }

    public ArrayList<BankList> getBankList() {
        return bankList;
    }

    public void setBankList(ArrayList<BankList> bankList) {
        this.bankList = bankList;
    }

    public class Ret {
        private boolean contract;
        private boolean koukuan;
        private boolean huankuan;

        public boolean getContract() {
            return contract;
        }

        public void setContract(boolean contract) {
            this.contract = contract;
        }

        public boolean getKoukuan() {
            return koukuan;
        }

        public void setKoukuan(boolean koukuan) {
            this.koukuan = koukuan;
        }

        public boolean getHuankuan() {
            return huankuan;
        }

        public void setHuankuan(boolean huankuan) {
            this.huankuan = huankuan;
        }
    }

    public class BankList implements Parcelable{
        String bank_code;
        String bank_name;
        String minsheng;
        String pingan;
        String status;

        public String getBank_code() {
            return bank_code;
        }

        public void setBank_code(String bank_code) {
            this.bank_code = bank_code;
        }

        public String getBank_name() {
            return bank_name;
        }

        public void setBank_name(String bank_name) {
            this.bank_name = bank_name;
        }

        public String getMinsheng() {
            return minsheng;
        }

        public void setMinsheng(String minsheng) {
            this.minsheng = minsheng;
        }

        public String getPingan() {
            return pingan;
        }

        public void setPingan(String pingan) {
            this.pingan = pingan;
        }

        public String getStatus() {
            return status;
        }

        public void setStatus(String status) {
            this.status = status;
        }



        @Override
        public void writeToParcel(Parcel dest, int flags) {
            dest.writeString(bank_code);
            dest.writeString(bank_name);
            dest.writeString(minsheng);
            dest.writeString(pingan);
            dest.writeString(status);
        }

        @Override
        public int describeContents() {
            return 0;
        }

        public final Parcelable.Creator<BankList> CREATOR = new Creator<BankList>() {

            @Override
            public BankList createFromParcel(Parcel source) {
                BankList status = new BankList();
                status.bank_code = source.readString();
                status.bank_name = source.readString();
                status.minsheng = source.readString();
                status.pingan = source.readString();
                status.status = source.readString();
                return status;
            }

            @Override
            public BankList[] newArray(int size) {
                return new BankList[0];
            }
        };

    }

}

